<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html>

	<head>
		<title>ksqUrl</title>
		<link rel="icon" href="<?php include '../includes/install_path.php'; echo $install_path; ?>favicon.ico">
		<link rel=StyleSheet href="<?php include '../includes/install_path.php'; echo $install_path; ?>includes/style.css">
<meta name="description" content="ksqUrl: The open source URL shortener. By Techerrata. code.google.com/p/ksqurl>
<meta http-equiv="content-language" content="en">
<meta name="author" content="techerrata.com">
<meta name="robots" content="follow,index">
	</head>
<body>
		<br/><a href="<?php include '../includes/install_path.php'; echo $install_path; ?>"><img src="<?php include '../includes/install_path.php'; echo $install_path; ?>logo.png" border="0"><img src="<?php include '../includes/install_path.php'; echo $install_path; ?>spacer.png" border="0" width="298px" height="0px"></a>
	<br/>

<div class="tip-display" id="tip-display" style="display:block;" onclick="document.getElementById('tip-display').style.display=(document.getElementById('notification-display').style.display== 'block')?'none':'block';" style="cursor: pointer;">
<h3>Version 1.0.0</h3>
</div><br/>
<form method="post" action="write.php"
 name="config"><h3>General</h3>
<div class="description">
<div class="description-left">
Domain (no trailing slash)<br/><input name="domain"
 value="<?php include '../includes/install_path.php'; echo $install_path; ?>" class="textbox"></div>
 <div class="description-right">
Website Name<br/><input name="webname"
 value="ksqUrl" onfocus="this.value=''" class="textbox"></div></div><br/><br/><br/>
<h3>MySQL</h3>
<div class="description">
<div class="description-left">
Username<br/><input name="sql_username"
 value="ksqurl_user" onfocus="this.value=''" class="textbox" style="width:140px;"><br/><br/>
Password<br/><input name="sql_password"
 value="MySQL_password" onfocus="this.value=''" type="password" class="textbox" style="width:140px;"><br/><br/>
Database<br/><input name="sql_database"
 value="ksqurl_db" onfocus="this.value=''" class="textbox" style="width:140px;"></div>
<div class="description-right">
Host<br/><input name="sql_host"
 value="localhost" class="textbox" style="width:140px;"><br/>
Table<br/><input name="sql_table"
 value="urls" class="textbox" style="width:140px;"></div></div>
 <br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/>


<h3>Display Features</h3>
<div class="description">
<div class="description-left">
Display short URL Search Page
<br/>
<div class="radiobuttons"><label for="search-t"><input checked="checked"
 name="search_page" id="search-t" value="1" type="radio"><span style="color:#333">True</span></label>
<label for="search-f"><input name="search_page"
 id="search-f" value="0" type="radio"><span style="color:#333">False</span></label></div>
<br/><br/>
</div>
<div class="description-right">
Display random short URLs
<br/>
<div class="radiobuttons"><label for="random-t"><input checked="checked"
 name="random_links" id="random-t" value="1" type="radio"><span style="color:#333">True</span></label>
<label for="random-f"><input name="random_links" 
 id="random-f" value="0" type="radio"><span style="color:#333">False</span></label></div>
</div></div>
<br/><br/><br/><br/><br/>


<h3>Optional Features</h3>
<div class="description">
<div class="description-left">
Embed audio (.mp3)
<br/>
<div class="radiobuttons"><label for="aud-t"><input checked="checked"
 name="play_mp3" id="aud-t" value="true" type="radio"><span style="color:#333">True</span></label>
<label for="aud-f"><input name="play_mp3"
 id="aud-f" value="false" type="radio"><span style="color:#333">False</span></label></div>
<br/><br/>
Embed videos (.flv)
<br/>
<div class="radiobuttons"><label for="vid-t"><input checked="checked"
 name="play_flv" id="vid-t" value="true" type="radio"><span style="color:#333">True</span></label>
<label for="vid-f"><input name="play_flv"
 id="vid-f" value="false" type="radio"><span style="color:#333">False</span></label></div>
</div>

<div class="description-right"> 
Embed images (.gif, .jpg, .png)
<br/>
<div class="radiobuttons"><label for="img-t"><input checked="checked"
 name="play_img" id="img-t" value="true" type="radio"><span style="color:#333">True</span></label>
<label for="img-f"><input
 name="play_img" id="img-f" value="false" type="radio"><span style="color:#333">False</span></label></div>
</div></div>
<br/><br/><br/><br/><br/><br/><br/><br/>
<h3>PhishTank Application Key</h3>
<div class="description">This key is not required, however it is recommened. Without a key, PhishTank may limit, or block checking for your site.</div><br/><br/>
<div class="description"><div class="description-left" style="width:218px;"><div class="radiobuttons"><span style="color:#333">To obtain a key visit:</span><br><a href="http://www.phishtank.com/api_register.php">phishtank.com/api_register.php</a></div></div>
 
 <div class="description-right"><label>Application Key</label><br><input name="appkey"
 value="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"  onfocus="this.value=''" class="textbox"></div></div>
<br/><br/><br/><br/>
<div class="buttons"><button name="submit" type="submit" class="positive">Install</button><button
 name="reset" type="reset" class="negative">Clear</button></div>
</form>
